package com.hz.ruoyifarmbase.basedata.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.AgrBaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * 工人信息表 agr_base_worker
 * @author 侯文波
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("agr_base_worker")
public class AgrBaseWorker extends AgrBaseEntity {

    @TableId(value = "worker_id", type = IdType.AUTO)
    private Long workerId;        //  工人id

    @Excel(name = "工人编码")
    private String workerCode;   //  工人编码

    @Excel(name = "工人姓名")
    private String workerName;   //  工人姓名

    @Excel(name = "工人性别")
    private Integer workerGender;   //  工人性别

    @Excel(name = "工人身份证号")
    private String workerCard;   //  工人身份证号

    @Excel(name = "工人年龄")
    private Integer workerAge;      //  工人年龄

    @Excel(name = "工人电话")
    private String workerPhone;   //  工人电话

    @Excel(name = "工龄")
    private Integer workerYear;   //  工龄

    @Excel(name = "工种")
    private String workerType;   //   工种

    @Excel(name = "密码")
    private String workerPassword;   //  工人密码

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @TableField(exist = false)
    private Map<String, Object> params;
}
